package com.twu.biblioteca;

import java.io.IOException;
import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: Admin
 * Date: 2013/05/23
 * Time: 9:38 PM
 * To change this template use File | Settings | File Templates.
 */
public class BibliotecaMain {

    public static void main( String [] args) throws IOException {
        Menu menu = getMenuItems();
        Books books = new Books();
        BibliotecaApp bibliotecaAppapp = new BibliotecaApp(new IO(System.out,System.in),menu,books);
        bibliotecaAppapp.run();
    }

    private static Menu getMenuItems() {
        ArrayList<String> options = new ArrayList<String>();
        options.add("1. View");
        options.add("2. Reserve a book");
        options.add("3. View Details");
        options.add("4. Movies");
        return new Menu(options);
    }
}
